package com.movitech.mobile.cz.base.entity;

import com.movitech.mobile.cz.base.common.util.StringUtils;
import com.movitech.mobile.cz.base.common.util.excel.annotation.ExcelField;
import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by robie.cao on 2018/5/24.
 */
@Data
public class GroupPurchaseAmountVO {

    private Date purchaseStartTime;

    private Date purchaseEndTime;

    @ExcelField(title = "采购完成时间",sort = 1)
    private String concatTime;

    public String getConcatTime() {
        return DateUtil.concatTime(purchaseStartTime,purchaseEndTime);
    }

    private String purchaseBody;

    @ExcelField(title = "采购主体",sort = 2)
    private String purchaseBodyName;

    @ExcelField(title = "采购数量(个)",sort = 3)
    private Integer purchaseAmount;

    @ExcelField(title = "数量占比",sort = 4)
    private String purchaseAmountPercent;

    @ExcelField(title = "采购金额(元)",sort = 5)
    private Double purchaseMoney;

    @ExcelField(title = "金额占比",sort = 6)
    private String purchaseMoneyPercent;


}
